import { AxiosPromise } from 'axios';
import { ByteQuery, ByteVO, ShareRangeQuery, ShareRangeVO, TypeMicroVO } from './types';
import request from '@/utils/request';

export const getDpaProductList = (query: ByteQuery): AxiosPromise<ByteVO[]> => {
  return request({
    url: '/oce/third/getDpaProductList',
    method: 'get',
    params: query
  });
};
export const addDpaProduct = (data: ByteVO): AxiosPromise<ByteVO> => {
  return request({
    url: '/oce/third/createDptProduct',
    method: 'post',
    data
  });
}
